<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"
	import="com.yh.news.biz.*,com.yh.news.entity.*,java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新闻详情</title>
</head>
<body>

	<%
		String id = request.getParameter("id");
		News news = null;
		if (id != null) {
			Integer nid = Integer.valueOf(id);
			NewsBiz nbiz = new NewsBiz();
			news = nbiz.showNewsById(nid);
		}
	%>
	<form action="donews.do" method="post">
	<table class="table" border="1px" cellpadding="0" cellspacing="0">
		<caption>新闻修改</caption>

		<input type="hidden" name="id" value="<%=news.getNid()%>"/>
        <input type="hidden" name="opt" value="update"/>

		<tr>
			<td>标题</td>
			<td><input name="title" type="text" value="<%=news.getNtitle()%>" size="50" /></td>
		</tr>
		<tr>
			<td>作者</td>
			<td><input name="author" type="text" value="<%=news.getNauthor()%>" /></td>
		</tr>
		<tr>
			<td>内容</td>
			<td><%=news.getNcontent()%></td>
		</tr>

	</table>
	<input type="submit" value="修改" />
	</form>
</body>
</html>